18bb1443b770e108dbe675b1f38c9d0febb9d63c,zanata-war/src/main/java/org/zanata/webtrans/shared/validation/action/XmlEntityValidation.java,XmlEntityValidation,validateIncompleteEntity,#String#,67
Before Change
{
if (word.contains(ENTITY_START_CHAR) && word.length() > 1)
{
if (!charRefExp.test(word) && !decimalRefExp.test(word) && !hexadecimalRefExp.test(word))
{
addError(getMessages().invalidXMLEntity(word));
}
After Change
{
if (word.contains(ENTITY_START_CHAR) && word.length() > 1)
{
word = replaceEntityWithEmptyString(charRefExp, word);
word = replaceEntityWithEmptyString(decimalRefExp, word);
word = replaceEntityWithEmptyString(hexadecimalRefExp, word);